package com.problem.leetcode;

/**
 * @author didi
 * @DESCRIPTION
 * @create 2019-04-25 22:53
 **/

public class Problem709 {
    public String toLowerCase(String str) {
        char[] chars = str.toCharArray();

        for (int index = 0; index < str.length(); index++) {
            char ch = str.charAt(index);
            if (ch <= 90 && ch >= 65) {
                chars[index] = (char) (ch + 32);
            }
        }
        return new String(chars);
    }
}
